#!/usr/bin/env bash
# 
apt install -y zsh curl

# 下载安装 On My Zsh
sh -c "$(curl -fsSL https://gitee.com/mirrors/ohmyzsh/raw/master/tools/install.sh | sed 's/-ohmyzsh\/ohmyzsh/-mirrors\/ohmyzsh/' | sed 's/-https:\/\/github.com/-https:\/\/gitee.com/')"

# 切换默认shell为Zsh
chsh -s $(which zsh)

# 重启终端来应用变更
exec zsh